/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package strategies;

import entityclasses.Session;
import javax.swing.DefaultListModel;
import entityclasses.Person;

/**
 *
 * @author umutcan
 */
public class FriendRequestListingStrategy implements IListStrategy {

    public FriendRequestListingStrategy() {
    }

    public DefaultListModel list() {
        
         DefaultListModel isteklerListModel = new DefaultListModel();
        
         for (Person p: Session.currentUser.getProfile().getFriendRequests())
            isteklerListModel.addElement(p);
         
         return isteklerListModel;
    }
    
}
